!function(t){var e={};function i(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(a,n,function(e){return t[e]}.bind(null,n));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t){t.exports=JSON.parse('{"debug":false,"url":{"domain":"clickagy.com","aorta":"https://aorta.clickagy.com"},"viewability":{"acceptedViewableDuration":1000,"acceptedViewableRatio":0.5,"debug":false}}')},function(t,e,i){"use strict";i.r(e);var a={extend:function(t,e){var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype},testJSON:function(t){if("string"!=typeof t)return!1;try{return JSON.parse(t),!0}catch(t){return!1}},createXHR:function(t){var e;if(!!window.XDomainRequest)return(e=new window.XDomainRequest).onload=function(e){var i=a.testJSON(e.responseText)?JSON.parse(e.responseText):JSON.parse(JSON.stringify(e.responseText));t(i)}(e),void(e.onerror=void 0);try{e=new XMLHttpRequest}catch(t){try{e=new ActiveXObject("Msxml2.XMLHTTP")}catch(t){try{e=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}}return e.onreadystatechange=function(){if(void 0!==e&&e&&4==e.readyState&&200==e.status&&e.responseText)try{var i=a.testJSON(e.responseText)?JSON.parse(e.responseText):JSON.parse(JSON.stringify(e.responseText));t(i)}catch(t){return}},e},xhrPost:function(t,e,i){var n=a.createXHR(i);!!window.XDomainRequest?n.open("POST",t):(n.open("POST",t,!0),"withCredentials"in n&&(n.withCredentials=!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"));try{n.send(e)}catch(t){}},xhrGet:function(t,e,i=!0){var n=a.createXHR(e);!!window.XDomainRequest?n.open("GET",t):n.open("GET",t,!0),"withCredentials"in n&&i&&(n.withCredentials=!0);try{n.send(null)}catch(t){}},getDomain:function(){return(window.location.href.indexOf("://")>-1?window.location.href.split("/")[2]:window.location.href.split("/")[0]).split(":")[0]},parseUrlGetParams:function(t){for(var e={},i=null,a=t.substr(t.indexOf("?")+1).split("&"),n=0;n>4,d=e+1>6:64,l=e+2>2)+a.charAt(c)+a.charAt(d)+a.charAt(l)}return n},windowOnLoadWithObject:function(t,e){var i=a.cloneObject(e);if("complete"==document.readyState)return t(i);window.addEventListener?window.addEventListener("load",(function(){t(i)}),!1):window.attachEvent?window.attachEvent("onload",(function(){t(i)})):window.onload=function(){t(i)}},attachEvent:function(t,e,i){t.attachEvent?(t["e"+e+i]=i,t[e+i]=function(){t["e"+e+i](window.event)},t.attachEvent("on"+e,t[e+i])):t.addEventListener(e,i,!1)},removeEvent:function(t,e,i){t.detachEvent?(t.detachEvent("on"+e,t[e+i]),t[e+i]=null):t.removeEventListener(e,i,!1)},cloneObject:function(t){var e={};for(var i in t)e[i]=t[i];return e},hasOwnProperty:function(t,e){var i;return e in t&&(!(e in(i=t.__proto__||t.constructor.prototype))||!a.is(t[e],i[e]))},dataHasProperty:function(t){return function(e){return a.hasOwnProperty(t,e)}},isValidEmail:function(t){return/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/.test(t)},is:function(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e},findMatch:function(t,e){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i].test(e))return i;return null},onload:function(t,e){t.onload=function(){if(!this.executed&&(this.executed=!0,"function"==typeof e))return e()},t.onreadystatechange=function(){var t=this;"complete"!=this.readyState&&"loaded"!=this.readyState||setTimeout((function(){t.onload()}),0)}},encodeUri:function(t){return"function"==typeof encodeURIComponent?encodeURIComponent(t):escape(t)},decodeUri:function(t){return"function"==typeof decodeURIComponent?decodeURIComponent(t):unescape(t)},log:function(t){return function(){}},getUrl:function(t){return function(){return t}},setCookie:function(t,e,i,n){var o=new Date;void 0===i&&(i=62985600),o.setTime(o.getTime()+1e3*i),("cb"!==t||"c:"!==e.substr(0,2)&&"c%"!==e.substr(0,2))&&(document.cookie=t+"="+a.encodeUri(e)+";path=/;domain=.clickagy.com;max-age="+i+";expires="+o.toGMTString()+";samesite=none;secure;")},readCookie:function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n-1&&n.indexOf("Android ")>-1&&n.indexOf("AppleWebKit")>-1&&n.indexOf("Version")>-1&&-1!=(e=n.indexOf("Android"))?(o="Android",r=n.substring(e+8),c.Android=!0,c.NaN=!1):-1!=(e=n.indexOf("OPR/"))?(o="Opera",r=n.substring(e+4),c.Opera=!0,c.NaN=!1):-1!=(e=n.indexOf("Opera"))?(o="Opera",r=n.substring(e+6),c.Opera=!0,c.NaN=!1,-1!=(e=n.indexOf("Version"))&&(r=n.substring(e+8))):-1!=(e=n.indexOf("MSIE"))||-1!=(e=n.indexOf("Trident"))?(o="Microsoft Internet Explorer",r=n.substring(e+5),c.IE=!0,c.NaN=!1):-1!=(e=n.indexOf("Chrome"))?(o="Chrome",r=n.substring(e+7),c.Chrome=!0,c.NaN=!1):-1!=(e=n.indexOf("Safari"))?(o="Safari",r=n.substring(e+7),c.Safari=!0,c.NaN=!1,-1!=(e=n.indexOf("Version"))&&(r=n.substring(e+8))):-1!=(e=n.indexOf("Firefox"))?(o="Firefox",r=n.substring(e+8),c.Firefox=!0,c.NaN=!1):-1!=(e=n.indexOf("Edge"))?(o="Edge",r=n.substring(e+5),c.Edge=!0,c.NaN=!1):(t=n.lastIndexOf(" ")+1)<(e=n.lastIndexOf("/"))&&(o=n.substring(t,e),r=n.substring(e+1),o.toLowerCase()==o.toUpperCase()&&(o=navigator.appName)),-1!=(i=r.indexOf(";"))&&(r=r.substring(0,i)),-1!=(i=r.indexOf(" "))&&(r=r.substring(0,i)),s=parseInt(""+r,10),isNaN(s)&&(r=""+parseFloat(navigator.appVersion),s=parseInt(navigator.appVersion,10)),{nVer:a,nAgt:n,browserName:o,fullVersion:r,majorVersion:s,is:c}},checkBrowser:function(){var t=!!n.window.opr&&!!n.window.opr.addons||!!n.window.opera||navigator.userAgent.indexOf(" OPR/")>=0,e="undefined"!=typeof InstallTrigger,i=/constructor/i.test(n.window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||n.window.safari.pushNotification).toString(),a=!!document.documentMode,o=!a&&!!n.window.StyleMedia,r=!!n.window.chrome&&!!n.window.chrome.webstore,s=(r||t)&&!!n.window.CSS;return{userAgent:navigator.userAgent,isOpera:t,isFirefox:e,isSafari:i,isEdge:o,isChrome:r,isIE:a,isBlink:s}},collectBrowserInfo:function(){var t={referrer:document&&document.referrer,language:navigator&&navigator.userLanguage||navigator.language||"",cookieEnabled:navigator&&navigator.cookieEnabled&&"undefined"!==navigator.cookieEnabled,timezone:(new Date).getTimezoneOffset(),screenResolution:{width:screen&&screen.width,height:screen&&screen.height},userAgent:navigator&&navigator.userAgent,colorDepth:screen&&screen.colorDepth,hardwareConcurrency:navigator&&navigator.hardwareConcurrency,platform:navigator&&navigator.platform,DNT:navigator&&navigator.doNotTrack,characterSet:document&&document.characterSet},e=n.document,i=n.window,a=e&&e.body&&e.body.offsetWidth,o=e&&e.body&&e.documentElement&&e.documentElement.clientWidth,r=i&&i.innerWidth,s=e&&e.body&&e.body.offsetHeight,c=e&&e.body&&e.documentElement&&e.documentElement.clientHeight,d=i&&i.innerHeight;return t.browserWidth=Math.max(a,o,r),t.browserHeight=Math.max(s,c,d),t},checkScreenSize:function(t,e){var i=n.getBodySize();return i.width>=t&&i.height>=e},getBodySize:function(){return{width:Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth),height:Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight)}},getFileAPI:function(){var t=n.window.File||n.window.FileReader||n.window.FileList||n.window.Blob;return t||!1},checkBrowserSupportByPattern:function(t){var e=n.checkBrowserVersion(),i=n.checkMobile(),a=e.fullVersion;a=a.substring(0,a.indexOf(".",a.indexOf(".")+1));var o=i?t.mobile:t.pc;for(var r in o)if(o.hasOwnProperty(r)&&e.is[r]&&a>=o[r])return!0;return!1},getMobileOperatingSystem:function(){var t=navigator.userAgent||navigator.vendor||n.window.opera;return/windows phone/i.test(t)?"Windows Phone":/android/i.test(t)?"Android":/iPad|iPhone|iPod/.test(t)&&!n.window.MSStream?"iOS":"unknown"}};function o(t){var e=this;this.account_id=t&&t.account_id,this.url=t&&t.url,this.aorta_url=t&&t.aorta_url,this.debug=t&&t.debug||!1,this.log=function(){var t=a.log("Clickagy [AdGenerator]: ");e.debug&&t.apply(e,arguments)},this.error=a.log("Clickagy Error [AdGenerator]: ")}let r,s,c,d,l;o.prototype.loadAd=function(t,e){var i,n=this,o="count=3&account_id="+a.encodeUri(this.account_id);o=o.concat("&u="+a.encodeUri(this.url)),this.requestNative(o,(function(a){return a.length<1&&n.error("No ads returned for adGenerator unit."),(i="block"==t?n.generateBlockAd(a):n.generateFloatAd(t,a))?e(n.renderFrame(i)):n.error("Advertising frame did not generated")}))},o.prototype.requestNative=function(t,e){a.xhrGet(this.aorta_url+"/native?"+t,e)},o.prototype.generateBlockAd=function(t){var e=document.createElement("div");return e.id="clickagy-ad-"+Math.floor(1e7*Math.random()),e.style.width="100%",e.style.height="100%",e.style.padding="0px",e.style.margin="0px",this.generateImageAds(e,t),e},o.prototype.generateIframeAd=function(t,e,i){var a=document.createElement("iframe"),o=n.getBodySize();return a.id="clickagy-ad-"+Math.floor(1e7*Math.random()),a.width=e.width+"px",a.height=e.height+"px",a.style.padding="0px",a.style.margin="0px",a.frameBorder=0,a.scrolling="no",a.src=this.aorta_url+"/ad?w="+e.width+"&h="+e.height,a.style.position="fixed","right"==t?(a.style.bottom="10px",a.style.right="10px"):"left"==t?(a.style.bottom="10px",a.style.left="10px"):a.style.left=o.width/2-e.width/2,i(this.renderFrame(a))},o.prototype.generateFloatAd=function(t,e){var i=document.createElement("div");if(n.checkScreenSize(1024,500)){if(i.id="clickagy-ad-"+Math.floor(1e7*Math.random()),i.style.backgroundColor="#383838",i.style.fontFamily="helvetica,arial,sans-serif",i.style.color="#fff",i.style.position="fixed","right"==t)i.style.bottom="10px",i.style.right="10px";else{if("left"!=t)return void this.error("Invalid float ad position: "+t);i.style.bottom="10px",i.style.left="10px"}return i.style.width="200px",i.style.padding="0px",i.style.margin="0px",i.style.border="1px solid #444",i.style.borderRadius="4px",i.style.overflow="hidden",i.style.scrolling="no",i.innerHTML='",this.generateImageAds(i,e),i}this.error("Screen size too small for a Float ad.")},o.prototype.generateImageAds=function(t,e){t.innerHTML='
CloseRecommended Content
';for(var i=0;i
"+e[i].headline+" "+e[i].display_url+"
");return t.innerHTML+="
",t},o.prototype.renderFrame=function(t){return document.body.appendChild(t),document.getElementById(t.id)};let h,u={acceptedViewableDuration:1e3,acceptedViewableRatio:.5,onSuccess:()=>{},debug:!1};function g(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype}function p(...t){u.debug}function f(){s=new IntersectionObserver(w,{root:null,rootMargin:"0px",threshold:[0,u.acceptedViewableRatio]}),s.observe(r)}function m(){document.hidden?(d=l,v()):d&&y()}function w(t,e){t.forEach(t=>{t.intersectionRatio>=u.acceptedViewableRatio?(p(u.acceptedViewableRatio),y()):(p(u.acceptedViewableRatio),v())})}function y(){l||(p(),l=!0,c=window.setTimeout(()=>{document.removeEventListener("visibilitychange",m),s.disconnect(),u.onSuccess(Date.now()),p()},u.acceptedViewableDuration),u.debug&&(h=performance.now()))}function v(){c&&(p(),clearTimeout(c),l=!1,c=!1,u.debug&&p(performance.now()))}function b(t){var e=this;this.version="2.0.0",this.debug=!1,this.dc=!1,this.ws=!1,this.ci=!0,this.publisher=!1,this.exchange=!1,this.ttd=!1,this.channel_id=null,this.impression_id=null,this.pub_id=null,this.email_ch=null,this.account_id=!1,this.data={},this.clickActions=!1,this.firstSend=!0,this.pageViewId=null,this.bountyVars=[],this.isSecure=!1,this.emailHashCapture=!1,this.urlGetParams=null,this.doneCookieMatching=!1,this.inIFrame=!1,this.currentDomain=null,this.browserWidth=0,this.browserHeight=0,this.window=n.window,this.log=function(){var t=a.log("Clickagy [ClickagyInstance]: ");e.debug&&t.apply(e,arguments)},this.error=a.log("Clickagy Error [ClickagyInstance]: "),this.config=t,this.init=function(t){"object"!=typeof t?(this.error("Invalid configuration! Pixel deactivated."),this.data={}):this.data=JSON.parse(JSON.stringify(t)),this.getAortaUrl=a.getUrl(this.config.url.aorta),this.dataHasProperty=a.dataHasProperty(this.data),this.dataHasProperty("clkgypv")&&(this.pageViewId=a.decodeUri(this.data.clkgypv),delete this.data.clkgypv),this.dataHasProperty("debug")&&(this.debug=1==this.data.debug,delete this.data.debug),this.dataHasProperty("exchange")?(this.exchange=1==this.data.exchange,delete this.data.exchange):(this.dataHasProperty("imp_id")||null!=location.search.split("&bid=")[1])&&(this.exchange=!0),this.dataHasProperty("ttd")&&(this.ttd=1==this.data.ttd,delete this.data.ttd),this.dataHasProperty("imp_id")&&(this.impression_id=this.data.imp_id);var i=a.parseUrlGetParams(location.search);if(this.channel_id=i.clickagy_ch||i.ch||this.data.ch||null,this.pub_id=i.clickagy_pid||i.pid||this.data.pid||null,this.dataHasProperty("email_ch")&&(this.email_ch=this.data.email_ch,delete this.data.email_ch),this.dataHasProperty("t")&&(this.data.t=decodeURIComponent(this.data.t)),this.resetBounty(),this.isSecure="https:"==location.protocol,this.currentDomain=a.getDomain(),(this.exchange||"clickagy.com"==this.currentDomain.substr(this.currentDomain.length-12))&&(this.currentDomain="clickagy.com"),this.dataHasProperty("request_geo")&&(this.requestGeo(),delete this.data.request_geo),this.dataHasProperty("ci")?(this.data.ci&&this.loadClickagyInsights(),this.ci=this.data.ci,delete this.data.ci):this.ci&&this.loadClickagyInsights(),this.dataHasProperty("ws")&&(this.ws=this.data.ws,this.email_ch=317,delete this.data.ws),this.dataHasProperty("info")&&"object"==typeof this.data.info){for(var n in this.data.info)this.bountyAppend("info~"+n,this.data.info[n]);delete this.data.info}if(this.collectBrowserInfo(),this.dataHasProperty("email")||this.dataHasProperty("email_md5")||this.dataHasProperty("email_sha1")||this.dataHasProperty("email_sha256")){var o="";this.dataHasProperty("email")&&(o=this.data.email),this.ingestEmail(o),delete this.data.email,delete this.data.email_sha1,delete this.data.email_sha256,delete this.data.email_md5}this.dataHasProperty("trigger")&&(this.initTriggerActions(this.data.trigger),delete this.data.trigger),(this.dataHasProperty("aid")||this.dataHasProperty("account_id")||this.dataHasProperty("advertiser_id"))&&(this.account_id=this.data.aid||this.data.account_id||this.data.advertiser_id),"69dijb31hnb"===this.account_id&&(this.dataHasProperty("conv_v")?this.loadPixel("https://api.delivrabl.net/pixel.gif?conv="+this.data.conv_v):this.loadPixel("https://api.delivrabl.net/pixel.gif")),this.dataHasProperty("ad")&&(this.loadAds((function(t){})),delete this.data.ad);try{this.inIFrame=window.self!==window.top}catch(t){this.inIFrame=!0}for(var n in this.inIFrame&&window.referrer&&"undefined"!=window.referrer?this.u=window.referrer:this.inIFrame&&document.referrer&&"undefined"!=document.referrer?this.u=document.referrer:this.u=window.location.href,this.dataHasProperty("u")&&(this.u=this.data.u),this.viewabilityMeasurement(),this.inIFrame||this.bountyAppend("ref",document.referrer),this.bountyAppend("url",this.u),this.checkClientOverrides(),this.data)this.dataHasProperty(n)&&("aid"==n?this.bountyAppend("account_id",this.data[n]):this.bountyAppend(n,this.data[n]));this.sendBounty(),this.secondaryProcessing(),e.log("CurrentInstance",this)},this.monitorEmailHashInputs=function(){a.attachEvent(this.window,"change",(function(t){e.processCIData.call(t.target)}))},this.scanEmailHashInputs=function(){for(var t=document.getElementsByTagName("input"),i=0;i10));i++);},this.ingestEmail=function(t){var i="https://hemsync.clickagy.com/external/emailHash?clkgypv=jstag&cb="+e.data.b+"&";t?e.email_ch?i+="ch="+a.encodeUri(e.email_ch)+"&":i+="ch=97&":e.dataHasProperty("ch")&&(i+="ch="+a.encodeUri(e.data.ch)+"&"),this.dataHasProperty("cc")&&(i+="cc=1&"),e.dataHasProperty("email_md5")&&(i+="email_md5="+a.encodeUri(e.data.email_md5)+"&"),e.dataHasProperty("email_sha1")&&(i+="email_sha1="+a.encodeUri(e.data.email_sha1)+"&"),e.dataHasProperty("email_sha256")&&(i+="email_sha256="+a.encodeUri(e.data.email_sha256)+"&"),t&&(i+="email64="+a.base64Encode(t)+"&"),i=i.replace(/&+$/,""),this.loadIFrame(i,0,0,!0,null)},this.checkClientOverrides=function(){this.checkClientOverrideClientCommand()},this.checkClientOverrideClientCommand=function(){if(this.dataHasProperty("cc")&&1==e.data.cc)for(var t in this.bountyAppend("info~lang",navigator.language),this.parseUrlGetParams(),this.urlGetParams)"utm_"==t.substr(0,4)&&this.bountyAppend("info~"+t,this.urlGetParams[t])},this.loadAds=function(t){if(this.account_id){var i=new o({account_id:this.account_id,aorta_url:this.getAortaUrl(),url:this.data.u||window.location.href});"native"!=this.data.ad.type?"native"!=this.data.ad.type||"right"!=this.data.ad.pos?"native"!=this.data.ad.type||"left"!=this.data.ad.pos?"standard"==this.data.ad.type&&i.generateIframeAd(this.data.ad.type.pos,{width:this.data.ad.w,height:this.data.ad.h},t):i.loadAd("left",t):i.loadAd("right",t):i.loadAd("block",t)}else e.error("Missing or non-valid account ID!")},this.parseUrlGetParams=function(){null==this.urlGetParams&&(this.urlGetParams=a.parseUrlGetParams(location.search))},this.parseUrlGetParamsLower=function(){null==this.urlGetParams&&(this.urlGetParams=a.parseUrlGetParamsLower(location.search))},this.craftUrlGetParams=function(t){if(!(t instanceof Object))return"";var e=[];for(var i in t)e.push(a.encodeUri(i)+"="+a.encodeUri(t[i]));return e.join("&")},this.bountyAppend=function(t,e){"clkgypv"!==t&&("b"!==t||"null"!=e&&"NaN"!=e&&e&&""!=e)&&this.bountyVars.push(t+"="+a.encodeUri(e))},this.resetBounty=function(){this.bountyVars=[],this.loadBeacon()},this.sendBounty=function(){for(var t=0;t=10?(this.setBeacon(this.data.b),this.log("Beacon [B]: "+this.data.b)):"string"!=typeof this.data.b&&(this.data.b=null),(this.debug||!this.data.b)&&document.cookie.indexOf("cb=")>=0&&(this.setBeacon(a.readCookie("cb")),this.log("Beacon [C]: "+this.data.b)),this.data.b},this.loadClickagyInsights=function(){e.monitorEmailHashes(),e.log("Insights: enabled")},this.monitorEmailHashes=function(){1!=this.emailHashCapture&&(a.attachEvent(this.window,"load",e.monitorEmailHashInputs),a.attachEvent(this.window,"pagehide",e.scanEmailHashInputs),this.emailHashCapture=!0)},this.doCookieMatching=function(){if(!this.doneCookieMatching&&!this.exchange&&!(this.dataHasProperty("list")&&"nziqrs2u5y8ld"==this.data.list||this.ttd)){var t="https://aorta.clickagy.com/pixel.gif";this.pageViewId?t+="?clkgypv="+this.pageViewId:this.firstSend||(t+="?clkgypv=jstag"),this.ws&&(t.indexOf("?")>=0?t+="&ws=1":t+="?ws=1"),1!==(navigator&&navigator.globalPrivacyControl)&&this.loadPixel(t),this.doneCookieMatching=!0}},this.setBeacon=function(t){"null"!=t&&"NaN"!=t&&t&&""!=t&&(this.data.b=t,this.bountyVars.indexOf("b="+this.data.b)<0&&""!=this.data.b&&this.bountyAppend("b",this.data.b),a.setCookie("cb",this.data.b,62985600,".clickagy.com"))},this.getBeacon=function(){return e.loadBeacon(),"null"!=e.data.b&&"NaN"!=e.data.b&&e.data.b&&""!=e.data.b?e.data.b:(e.error("Could not locate a beacon!"),null)},this.parseResponse=function(t){if("string"==typeof t.sc&&t.sc.length>0&&a.setCookie("clickagy",t.sc),"string"!=typeof t.b&&"number"!=typeof t.b)throw new Error("Clickagy Error: "+t);e.setBeacon(t.b)},this.loadTagFrame=function(t){var e=document.createElement("IFRAME"),i=document.getElementsByTagName("script")[0];e.setAttribute("src",t),e.style.width="0px",e.style.height="0px",e.style.display="none",i.parentNode.insertBefore(e,i)},this.loadIFrame=function(t,i,a,n,o){var r=document.createElement("IFRAME");(n||i<1&&a<1)&&(r.style.display="none"),!isNaN(a)&&isFinite(a)&&(a+="px"),!isNaN(i)&&isFinite(i)&&(i+="px"),r.marginHeight="0",r.marginWidth="0",r.style.width=a,r.style.height=i,r.style.padding="0px",r.style.margin="0px",r.style.border="0px",r.style.borderWidth="0px",r.style.borderColor="#FFF",r.style.seamless="seamless",r.style.overflow="hidden",r.style.scrolling="no",o&&(r.onerror=function(t,i){i.onerror=function(){e.error("CRITICAL - Error loading panel content, and fallback failed!")},i.src=t}(o,r)),r.src=t;var s=document.scripts[document.scripts.length-1];s.parentElement.insertBefore(r,s.nextSibling)},this.loadPixel=function(t,e){var i,n;i=document.createElement("img"),n=document.getElementsByTagName("script")[0],i.async=!0,i.src=t,i.width=1,i.height=1,i.alt="",i.setAttribute("role","presentation"),i.style.cssText="position:absolute !important;bottom:0 !important;left:0 !important;margin-left:-9999px;",n.parentNode.insertBefore(i,n),a.onload(i,e)},this.loadJS=function(t){var e,i;e=document.createElement("script"),i=document.getElementsByTagName("script")[0],e.async=!0,e.src=t,e.type="text/javascript",i.parentNode.insertBefore(e,i)},this.requestGeo=function(){var t=this;navigator.geolocation.getCurrentPosition((function(e){t.bountyAppend("geo_lat",e.coords.latitude),t.bountyAppend("geo_long",e.coords.longitude),t.bountyAppend("geo_accuracy",e.coords.accuracy)}),(function(e){t.error("Could not lookup Geo Location")}),{enableHighAccuracy:!0,timeout:1500,maximumAge:1/0})},this.initTriggerActions=function(t){if(t instanceof Array)for(var e in t)this.initTriggerAction(t[e]);else this.log("Invalid trigger config:"+t)},this.initTriggerAction=function(t){var i;if(t.hasOwnProperty("type")&&t.hasOwnProperty("val")&&t.hasOwnProperty("execute"))return"sec"==t.type?isNaN(t.val)?void e.log("Invalid sec trigger value:"+t):void setTimeout((i=t.execute,function(){e.loadPixel(e.getAortaUrl()+"/pixel.gif?"+e.craftUrlGetParams(i))}),1e3*t.val):void("session_pages"!=t.type?"onclick"==t.type&&this.initClickActions({clickElement:t.val,execute:t.execute}):e.log("Session pages coming soon!"));this.log("Invalid trigger record values:"+t)},this.initClickActions=function(t){a.windowOnLoadWithObject((function(i){if("#"==t.clickElement.substr(0,1))e.log("Attaching CLU to ID "+t.clickElement),e.attachClickAction(document.getElementById(t.clickElement.substr(1)),i,t.execute);else{var a,n=document.getElementsByTagName("*");for(a in n)(" "+n[a].className+" ").indexOf(" "+t.clickElement+" ")>-1&&(e.log("Attaching CLU to class object "+t.clickElement),e.attachClickAction(n[a],i,t.execute))}}),this.data)},this.attachClickAction=function(t,i,n){i=a.cloneObject(i),n=a.cloneObject(n),a.attachEvent(t,"click",(function(){!function(t){for(var i in delete t.list,delete t.conv_v,delete t.onclick,n)t[i]=n[i];e.loadPixel(e.getAortaUrl()+"/pixel.gif?"+e.craftUrlGetParams(n))}(i)}))},this.collectBrowserInfo=function(){var t=n.collectBrowserInfo();this.bountyAppend("lang",t.language),this.bountyAppend("cookies",t.cookieEnabled),this.bountyAppend("tz",t.timezone),this.bountyAppend("screen_res",t.screenResolution.width+"x"+t.screenResolution.height),this.browserWidth=t.browserWidth,this.browserHeight=t.browserHeight,void 0!==this.browserHeight&&void 0!==this.browserWidth&&this.bountyAppend("browser_res",this.browserWidth+"x"+this.browserHeight)},this.viewabilityMeasurement=()=>{if(this.data.imp_id){var t=a.parseUrlGetParamsLower(location.search);t.clicktag&&(window.clickTag=t.clicktag.value,window[t.clicktag.originalKey]=t.clicktag.value)}if(!g()||!a.inIframe())return;this.loadBeacon();let i={};this.data.imp_id&&(i.imp=this.data.imp_id),this.data.t&&(i.t=this.data.t),this.data.c&&(i.c=this.data.c);let n=a.parseUrlGetParams(location.search),o=n.clickagy_ch||n.ch||this.data.ch||null;if(o&&(i.ch=o,i.ch_id=o),this.data.ag&&(i.ag=this.data.ag),this.data.a&&(i.a=this.data.a),this.data.b&&(i.b=this.data.b),this.account_id&&(i.account_id=this.account_id),this.ttd&&(i.ttd="1"),this.data.u&&(i.u=this.data.u),!(i.imp&&i.c&&i.ag&&i.a))return;const s=new URLSearchParams(i);a.xhrGet(`${e.getAortaUrl()}/event?clkgypv=1&et=vw.tested&${s}`,()=>{});const c={...this.config.viewability,onSuccess:()=>a.xhrGet(`${e.getAortaUrl()}/event?clkgypv=1&et=vw.viewed&${s}`,()=>{})};!function(t,e={}){r=t,u={...u,...e},d=!1,l=!1,g()&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",f,!1):f(),document.addEventListener("visibilitychange",m,!1))}(document.body,c)}}Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){for(var i=e||0,a=this.length;i